package com.yjy.fuyao.stu.client;

import com.yjy.fuyao.stu.client.fallback.OrderClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-order", fallback = OrderClientFallback.class)
public interface OrderClient {
    //查询订单信息
    @GetMapping("/service/order/isBuyCourse/{userid}/{id}")
    public boolean isBuyCourse(@PathVariable String userid, @PathVariable String id);
}
